package com.alpha.tables;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the project database table.
 * 
 */
@Entity
@Table(name="project")
public class Project implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private ProjectPK id;

	private int budject;

	private String description;

	private String name;

	//bi-directional many-to-one association to Activity
	@OneToMany(mappedBy="project")
	private Set<Activity> activities;

    public Project() {
    }

	public ProjectPK getId() {
		return this.id;
	}

	public void setId(ProjectPK id) {
		this.id = id;
	}
	
	public int getBudject() {
		return this.budject;
	}

	public void setBudject(int budject) {
		this.budject = budject;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<Activity> getActivities() {
		return this.activities;
	}

	public void setActivities(Set<Activity> activities) {
		this.activities = activities;
	}
	
}